<?
   $arr_product = getProduct($cat_id,9,'pro_date');
?>
<div class="pro-related clear-fix">
   <div class="pro-title relative">
      <em class="left-gym"></em>
      <em class="right-gym"></em>
      <span>Sản phẩm tương tự</span>
   </div>   
   <div class="main-content relative">
      <ul class="black-transparent list-pro">
         <?
         $i = 0;
         foreach($arr_product as $key=>$value){
            if($value['pro_id'] != $pro_id){
               $i++;
               $pro_price = ($value['pro_price'] > 0) ? format_number($value['pro_price']) : 'Liên hệ';
               $link = rewriteDetailProduct($value['pro_name'],$value['pro_id']);?>
               <li class="items-pro">
                  <a href="<?=$link?>">
                     <?PrintImageThumbPro($value['pro_pic'],PATH_IMG_THUMB,'',$value['pro_name'])?>
                     <p><?=$value['pro_name']?></p>
                     <div class="op-product">
                        <span class="price-pro yellow"><?=$pro_price?></span>
                        <button class="relative">Chi tiết <em class="arrow-right"></em></button>
                     </div>
                  </a>
               </li>
               <?if($i%3 == 0){?>
                  <div class="line-ver clear-fix"></div>
               <?}?>
            <?}?>
         <?}?>          
      </ul>
   </div>
   
</div>
<!-- ENd div pro-related-->